package com.samuel.igoodman.entity.book;

import com.samuel.igoodman.entity.POJO;

/**
 * 图书内容,用于展示每天的灵修分享
 * @author samuel
 */
@SuppressWarnings("serial")
public class BookContent extends POJO {

	private long id;
	private String content; // 内容
	private String date;	//分享日期
	private String comment;	//经文注解
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
	@Override
	public String where() {
		StringBuffer where = new StringBuffer(" 1=1 ");;
		if(null!=this.date&&!"".equals(date)){
			where.append(" AND	date = '").append(date).append("' ");
		}
		return where.toString();
	}
	
}
